package com.javaclimb.accounting.dao;

import com.javaclimb.accounting.po.Bind;

import java.util.List;

/**
 * @description:
 * @author: XX
 * @create: 2022-12-28 10:39
 **/

public interface BindDao {
    /*根据银行卡id查看bind表中是否该银行卡已被绑定*/
    Bind findBind(long cardId);

    /*向bind表中插入绑定信息*/
    int bind(Bind bind);

    /*根据账户id查看该用户已绑定的卡*/
    List<Bind> findBindsByAccountId(long accountId);
}
